<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
header("Content-type:text/html;charset=utf-8"); 
define('ROOT_PATH', dirname(__FILE__));
define('TIME', time());
define('PINGCO_ROOT', str_replace("\\", '/', substr(dirname(__FILE__), 0, -4)));

require 'config.inc.php';
require 'db.class.php';
require 'api.class.php';
require 'global.func.php';
require 'mod.class.php';


$db = new db_mysql();
$db->connect(DB_HOST, DB_USER, DB_PW, DB_NAME, DB_PCONNECT, DB_CHARSET);

$api = new API();


global $sid; 
$sid = $_GET['sid'];
?>